{%include file="m.index.header.tpl.php"%}
<!--头部 end--> 
<!--主体部分-->
<div class="container" style="margin-top:70px;">
  <div class="row" style="margin-top:15px;margin-left:1px; margin-right:1px;">
    <form class="form-horizontal" role="form" action="" method="post">
     
      <div class="form-group">
        <label for="inputEmail3" class="col-sm-2 control-label">老师:</label>
        <div class="col-sm-10">
          <select class="form-control" id="s1" onchange="a()" name="from_staff">
			  <option>请选择</option>
			  {%foreach from=$data_lists key=key item=value%}
			  <option value="staff_{%$key%}">{%$value.name%}</option>
			  {%/foreach%}
		 </select>
        </div>
      </div>
        {%foreach from=$data_lists key=key item=value%}
        <div class="form-group tea" id="staff_{%$key%}" style="display:none">
            <label class="col-sm-4 control-label text-right">
                班级学科：
            </label>

            <div class="input-group col-sm-4 col-xs-12">
                {%foreach from=$value.data key=k item=v%}
                <label class="choice"><input type="checkbox" name="pids[]" value="{%$k%}"> {%$v%}</label>
                {%/foreach%}
            </div>
        </div>
        {%/foreach%}

       
      <div class="form-group">
        <label for="inputEmail3" class="col-sm-2 control-label">新科任:</label>
        <div class="col-sm-10">
          <select class="form-control" name="to_staff">
		   {%foreach from=$staff_lists key=key item=value%}
				  <option value="{%$value.staff_id%}">{%$value.staff_name%}</option>
		   {%/foreach%}
		  </select>
        </div>
      </div>
      <div class="form-group">
        <label for="inputEmail3" class="col-sm-2 control-label">启用时间：</label>
        <div class="col-sm-10">
          <input type="text" class="form-control" id="datepicker" name="start_time" value="{%$start_time%}">
        </div>
      </div>
      <div class="form-group text-center">
        <button type="submit" class="btn btn-primary" style="width:85%">确定</button>
      </div>
    </form>
  </div>
</div>
<!--container
  {%foreach from=$data_lists key=key item=value%}
      <div class="form-group classdemo1" id="zhang">
        <label for="inputEmail3" class="col-sm-2 control-label">班级学科:</label>
        <div class="col-sm-10" id="class">
          {%foreach from=$value.data key=k item=v%}
			<label class="choice"><input type="checkbox" name="pids[]" value="{%$k%}"> {%$v%}</label>
		  {%/foreach%}
        </div>
      </div>
      {%/foreach%}
  end-->
<!--主体部分  end--> 
<!--底部-->
{%include file="m.index.footer.tpl.php"%} 
<script src="mstatic/js/jquery.min.js" type="text/javascript"></script>
<script src="mstatic/js/bootstrap.min.js"  type="text/javascript"></script>
<script src="mstatic/js/jquery-ui.js" type="text/javascript"></script>

<script type="text/javascript">
    $(document).ready(function(){
        $(".tea").hide();
    });
    function a()
    {
        $(".tea").hide();
        var val = $("#s1").val();
        $("#"+val).show();
    }
</script>
<!--日历--> 
<script>
  $(function() {
    $( "#datepicker" ).datepicker({
		
        changeMonth: true,
        changeYear: true
	  
    });
	
	$( "#datepicker2" ).datepicker({
		 
        changeMonth: true,
        changeYear: true
	  
    });
  });
  </script>



